﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:y="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditAssociatedIDCollection" xmlns:BrainTechLLC_Silverlight_ClientApplication="clr-namespace:BrainTechLLC.Silverlight.ClientApplication">
    <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <TextBlock HorizontalAlignment="Right" VerticalAlignment="Top" Text="{Binding Mode=OneWay, Path=Count}" Canvas.ZIndex="993" Foreground="Black" />
        <ListBox x:Name="lstIDs" Padding="0,0,0,0" Margin="0,0,0,0">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <y:WrapPanel MaxHeight="140" Height="Auto" VerticalAlignment="Top" Orientation="Vertical" Width="Auto" HorizontalAlignment="Stretch" SizeChanged="WrapPanel_SizeChanged"/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <BrainTechLLC_Silverlight_ClientApplication:EditAssociatedID HorizontalAlignment="Left" VerticalAlignment="Top" Padding="0,0,0,0" Margin="0,0,0,0"
                                                                                 Height="Auto" Width="Auto" AssociatedID="{Binding}" Loaded="EditAssociatedID_Loaded"
                                                                                 HorizontalContentAlignment="Left" VerticalContentAlignment="Top"                                                                                 
                                                                                 RequestEditID="EditAssociatedID_RequestEditID"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>